package com.yu.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yu.subject.infra.basic.entity.SubjectCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author 路亚
 * @version 0.1
 * @className SubjectCategoryDao
 * @description
 * @date 2024/12/18 22:46
 * @since jdk11
 */
@Mapper
public interface SubjectCategoryDao extends BaseMapper<SubjectCategory> {

    @Update("update subject_category set is_deleted = 1 where id = #{id}")
    void deleteByCategoryId(Long id);
}
